package com.droidclaimcustomer.model;

import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import com.droidclaimcustomer.R;

public class StatusModel {

	Resources res;

	public StatusModel(Context activity) {

		res = activity.getResources();
	}

	public String getStatus(int statusId) {

		String result = "";
		switch (statusId) {
		case 1:
			result = res.getString(R.string.status1);
			break;
		case 2:
			result = res.getString(R.string.status2);
			break;
		case 3:
			result = res.getString(R.string.status3);
			break;
		case 4:
			result = res.getString(R.string.status4);
			break;
		case 5:
			result = res.getString(R.string.status5);
			break;

		default:
			break;
		}
		
		return result;

	}
	
	public int getStatus(String status) {

		int result = 1;
		
		if (status.equals(res.getString(R.string.status1))){
			result = 1;
		}else if(status.equals(res.getString(R.string.status2))){
			result = 2;
		}else if(status.equals(res.getString(R.string.status3))){
			result = 3;
		}else if(status.equals(res.getString(R.string.status4))){
			result = 4;
		}else if(status.equals(res.getString(R.string.status5))){
			result = 5;
		}
		return result;

	}

}
